﻿using System;
using System.Globalization;
using System.Windows.Data;

namespace MijnMultiOSRSSApp.Common.Converters
{
    public class PublishDateConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value == null || !(value is DateTime))
                return null;

            return ((DateTime)value).ToString("F", new CultureInfo("nl-nl"));
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
